<html>
<head><meta charset="utf-8"><title>How do I use RLS with macOS? · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html">How do I use RLS with macOS?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="235465752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235465752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cherryblossom <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235465752">(Apr 21 2021 at 07:15)</a>:</h4>
<p>I'm working on a bug fix and I'm trying to get RLS to work with VSCode. When I open the project I get prompted to install missing rust components, so I click ‘yes’. However, I get the error</p>
<div class="codehilite"><pre><span></span><code>&gt; Executing task: /Users/myname/.cargo/bin/rustup component add rls --toolchain nightly-2021-04-08-x86_64-apple-darwin &lt;

error: component &#39;rls&#39; for target &#39;x86_64-apple-darwin&#39; is unavailable for download for channel nightly-2021-04-08
Sometimes not all components are available in any given nightly. If you don&#39;t need the component, you can remove it with:

    rustup component remove --toolchain nightly-2021-04-08 --target x86_64-apple-darwin rls
</code></pre></div>
<p>I've tried changing the <code>rust-client.channel</code> setting to <code>nightly</code> and <code>stable</code> but that didn't work.</p>



<a name="235468331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235468331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235468331">(Apr 21 2021 at 07:45)</a>:</h4>
<p>This is the clippy channel, so you probably won't receive much help here. I recommend to use rust-analyzer instead. It'll replace RLS in the future and already works better for most people.</p>



<a name="235479162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235479162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cherryblossom <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235479162">(Apr 21 2021 at 09:21)</a>:</h4>
<p>I tried using rust-analyser as well and that didn't work.</p>
<blockquote>
<p>This is the clippy channel</p>
</blockquote>
<p>I should have been more clear. I'm working on a bug fix for Clippy and I was just wondering how other people work on it when the <code>nightly-2021-04-08</code> channel (which is specified in <code>rust-toolchain</code>) does not have <code>rls</code> for the <code>x86_64-apple-darwin</code> target.</p>



<a name="235479236"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235479236" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235479236">(Apr 21 2021 at 09:22)</a>:</h4>
<p>have you tried the command it suggested? <code>    rustup component remove --toolchain nightly-2021-04-08 --target x86_64-apple-darwin rls</code></p>



<a name="235479248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235479248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235479248">(Apr 21 2021 at 09:22)</a>:</h4>
<p>rls should not be installed by default</p>



<a name="235480386"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235480386" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> xFrednet <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235480386">(Apr 21 2021 at 09:32)</a>:</h4>
<p>You could also try to use a slightly different nightly version by editing the <code>rust-toolchain</code> file just make sure that the project still compiles and that you don't commit that change <span aria-label="upside down" class="emoji emoji-1f643" role="img" title="upside down">:upside_down:</span></p>



<a name="235485057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235485057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235485057">(Apr 21 2021 at 10:14)</a>:</h4>
<p>Oh sorry for the misunderstanding. I haven't used RLS for Clippy development for a while now. The only answer I can give you is that we have some documentation how to get RA to work with Clippy here: <a href="https://github.com/rust-lang/rust-clippy/blob/master/CONTRIBUTING.md#rust-analyzer">https://github.com/rust-lang/rust-clippy/blob/master/CONTRIBUTING.md#rust-analyzer</a></p>
<p>If you want to wait a day, we'll update the nightly version Clippy uses tomorrow, then everything should be available again.</p>



<a name="235820575"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/How%20do%20I%20use%20RLS%20with%20macOS%3F/near/235820575" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cherryblossom <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/How.20do.20I.20use.20RLS.20with.20macOS.3F.html#235820575">(Apr 23 2021 at 10:51)</a>:</h4>
<p>Thanks for the help! I ended up fixing the bug without editor support but I'll keep these tips in mind if I work on Clippy in the future.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>